package com.bea.ftd.mapping.feign;

import com.bea.ftd.common.model.EncryptRequest;
import com.bea.ftd.common.model.EncryptResponse;
import com.bea.ftd.mapping.fallback.EncryptFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "encrypt" ,fallback = EncryptFallback.class)
@Component
public interface EncryptFeign {

    @RequestMapping("/gatewayForward")
    public EncryptResponse gatewayForward(@RequestBody EncryptRequest request);
}
